package com.spotalog.server.service;

import java.util.Collections;

import com.google.appengine.api.blobstore.BlobKey;
import com.google.common.base.Function;
import com.google.common.collect.Iterables;

class BlobKeys {
	private BlobKeys() {}

	static Iterable<String> toStrings(Iterable<? extends BlobKey> blobKeys) {
		if (blobKeys == null) {
			return Collections.emptySet();
		}
		return Iterables.transform(blobKeys, new Function<BlobKey, String>() {
			@Override
			public String apply(BlobKey input) {
				return input.getKeyString();
			}
		});
	}
}
